<?php

namespace App\Http\Controllers\Api;

use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Api\Controller;

class TestController extends Controller
{
    public function index()
    {
        $user = $this->authUser();

        return $user;
    }

    public function retsportData(Request $request)
	        {
			        $this->returned['result']['code'] = 1;
				        $this->returned['result']['status'] = 'success';
				        $this->returned['result']['msg'] = '返回成功';
					        $this->returned['data'] = $request->sportData;
					        return response()->json($this->returned, $this->statusCode);
						    }
}
